package com.example.springcloud.dao;

import com.example.springcloud.domain.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @ClassName OrderDao
 * @Author Admin
 * @Date 2020/9/17 18:24
 * @Version 1.0
 **/
@Mapper
public interface OrderDao {
    //新建订单
    public void create(Order order);

    //修改订单状态，从零改为1
    public void update(@Param("userId") Long userId, @Param("status") Integer status);

}
